#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>

void moveDisk(char source, char destination, char helper, int n)
{
	if (n == 1)
	{
		printf("%c--->%c\n", source, destination);
	}
	else
	{
		moveDisk(source, helper, destination, n - 1);//moveDisk('a','b','c',2//movedisk('a','c,'b',1
		printf("%c--->%c\n", source, destination);
		moveDisk(helper, destination, source, n - 1);
	}
}

int main()
{
	moveDisk('A', 'B', 'C', 3);

	return 0;
}